<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>论坛</title>

    <!-- Bootstrap -->
    <link href="__CSS__/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="__CSS__/header.css"/>
    <link rel="stylesheet" href="__CSS__/blogIndex.css"/>
    <style>
        #blog {
            border-bottom: 2px solid #e67e22;
            margin-bottom: -2px;
        }
    </style>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<include file="Public:Header"/>
<div class="container search">
    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">
            <form action="{:U('Home/Blog/blogSearch')}" class="navbar-search form-inline navbar-form" id="search_form" method="post">
                <input type="search" class="form-control search-query" name="search_content" id="search-text"/>
                <button class="btn btn-default" type="submit" name="search" id="search-btn">搜索</button>
            </form>
        </div>
        <div class="col-md-3"></div>
    </div>


    <div class="row">
        <!--//content-->
        <div class="blog-area col-md-offset-2 col-md-8">
            <div class="blog-content" role="tabpanel">
                <!--搜索结果-->
                <h3>搜索结果：</h3>
                <ul class="find-list">
                    <!--复用-->
                    <foreach name="result.blog" item="list">
                        <li class="clearfix">
                            <div class="li-block">
                                <!--//这里的U方法传参的时候数组要写原生形式，不能写成array.xx-->
                                <h4>
                                    <a href="{:U('Blog/negativeEnergyPosts',array('blog_id'=>$list['blog_id']))}">{$list.blog_title}</a>
                                </h4>
                                <p class="text-right">
                                    <a href="" class="aw-username">{$list.user_name}</a>
                                    <span>发布于{$list.blog_date|date="Y-m-d H:i:s",###} •</span>
                                    <a href="" class="aw-username">{$list.last_reply_user}</a>
                                    <span>回复了问题 • {$list.replies_num} 个回复</span>
                                </p>
                            </div>
                        </li>
                    </foreach>
                </ul>

            </div>

        </div>
    </div>
</div>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/reply.js"></script>
</body>
</html>